package com.javabi.codeobject.java.block.method.constructor;

import com.javabi.codeobject.java.block.method.JavaMethod;
import com.javabi.codeobject.java.name.IJavaName;
import com.javabi.codeobject.java.name.JavaName;
import com.javabi.codeobject.java.type.IJavaType;

public class JavaConstructor extends JavaMethod {

	public JavaConstructor(IJavaName name) {
		super(name);
		setConstructor(true);
	}

	public JavaConstructor(String name) {
		this(new JavaName(name));
	}

	public JavaConstructor(IJavaType type) {
		this(new JavaName(type.getSimpleName()));
	}

}
